import wx
class MyFrame(wx.Frame):
    def __init__(self, parent, id):
        wx.Frame.__init__(self,parent,id, title="创建Frame",pos=(0,0),size=(300,300))

if __name__ == '__main__':
  app =wx.App()
  frame = MyFrame(parent=None,id=-1)
  frame.Show()
  app.MainLoop()
        